package com.eostoken.eos_wallet.ui.activity;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import com.blankj.utilcode.util.FragmentUtils;
import com.eostoken.eos_wallet.R;
import com.eostoken.eos_wallet.base.BaseActivity;
import com.eostoken.eos_wallet.ui.fragment.AddWalletFragment;
import com.eostoken.eos_wallet.ui.fragmentfactory.FragmentFactory;
import com.fredy.mvp.BasePresenter;
import com.fredy.mvp.BaseView;
import com.fredy.mvp.Model;

import static com.eostoken.eos_wallet.utils.Constants.ADD_WALLET;

public class AddWalletActivity extends BaseActivity {

    @Override
    protected void initData() {

    }

    @Override
    public void initView() {
        boolean isMain = getIntent().getBooleanExtra("isMain", true);
        Fragment fragment = FragmentFactory.getInstatic().getFragment(ADD_WALLET);//new AddWalletFragment();
        Bundle bundle = new Bundle();
        bundle.putBoolean("isMain", isMain);
        fragment.setArguments(bundle);
        if (fragment != null) {
            FragmentUtils.add(getSupportFragmentManager(), fragment, R.id.frag_container);
        }
    }

    @Override
    public boolean isShowState() {
        return true;
    }

    @Override
    public int getContentView() {
        return R.layout.activity_child;
    }

    @Override
    public Model createModel() {
        return null;
    }

    @Override
    public BaseView createView() {
        return null;
    }

    @Override
    public BasePresenter createPresenter() {
        return null;
    }
}
